package com.ff.xyh.feign.client.dictionary;

import com.ff.xyh.common.entity.dictionary.CheckStatus;
import com.ff.xyh.common.entity.result.ResultMessage;
import com.ff.xyh.common.entity.result.ResultObject;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @Auther FF
 * @Date 2023年 05月 25日
 * @Time 01:47
 */

@FeignClient(value = "consumer-dictionary", contextId = "CheckStatusClient")
@RequestMapping("/dictionary")
public interface CheckStatusClient {


    @ApiOperation(value = "获取所有审核状态信息")
    @GetMapping("get-check-status-all")
    ResultObject getAllCheckStatus() ;

    @ApiOperation(value = "根据id获取审核状态信息")
    @GetMapping("get-check-status-id")
    ResultObject getCheckStatusById(
            @RequestParam(name = "id", required = false) Integer id) ;

    @ApiOperation(value = "根据id删除审核状态信息")
    @GetMapping("delete-check-status-id")
    ResultObject deleteCheckStatusById(
            @RequestParam(name = "id" , required = true) Integer id) ;

    @ApiOperation(value = "添加审核状态信息")
    @PostMapping("insert-check-status")
    ResultObject insertCheckStatus(
            @RequestBody CheckStatus checkStatus) ;

    @ApiOperation(value = "修改审核状态信息")
    @PostMapping("update-check-status")
    ResultObject updateCheckStatus(
            @RequestBody CheckStatus checkStatus) ;
}
